package models

import (
	"gorm.io/gorm"
	"time"
)

type Order struct {
	gorm.Model
	UserId   int64   `gorm:"type:int(11)"`
	AskMonth int64   `gorm:"type:int(11)"`
	Price    float64 `gorm:"type:float(10,2)"`
	Status   string  `gorm:"type:enum('支付成功','支付中','待支付','已取消')"`
	Snow     string  `gorm:"type:varchar(50)"`
}
type Log struct {
	gorm.Model
	UserId  int64      `gorm:"type:int(11)"`
	OrderId int64      `gorm:"type:int(11)"`
	PayAt   *time.Time `gorm:"type:datetime"`
}
